import Animal from './Animal';

class Dog extends Animal {
    public leg: number;
    constructor(name: string, leg: number){
        super(name)
        this.leg = leg;
    }
    public move(distanceMeters = 5) {
        console.log('woof! woof!');
        super.move(distanceMeters)
    }
}

export default Dog;